﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true"
  Inherits="Kiiro.SiteDefinition.ProjectPages.AllDiscussion, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="SP" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="v2" TagName="Pager" Src="~/_controltemplates/Kiiro/Pager.ascx" %>
<%@ Register TagPrefix="v2" TagName="WelcomeMessagePanel" Src="~/_controltemplates/Kiiro/WelcomeMessagePanel.ascx" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <asp:Panel ID="pnlPanel" runat="server" CssClass="panel">
            <div class="panel-wrap">
              <div class="panel-title" id="columnHeaders" runat="server">
                <table class="table-discussions">
                  <tr>
                    <th class="image">&nbsp;</th>
                    <th class="post">&nbsp;</th>
                    <th class="started">
                      <p class="sort">
                        <asp:LinkButton ID="lbStartedBy" runat="server" OnClick="SortBy_Click" CommandArgument="StartedBy">Started By</asp:LinkButton><asp:Literal
                          ID="startedSort" runat="server" /></p>
                    </th>
                    <th class="last">
                      <p class="sort">
                        <asp:LinkButton ID="lbLastReply" runat="server" OnClick="SortBy_Click" CommandArgument="LastReply">Last Reply</asp:LinkButton><asp:Literal
                          ID="replySort" runat="server" /></p>
                    </th>
                    <th class="comments">
                      <p class="sort">
                        <asp:LinkButton ID="lbComments" runat="server" OnClick="SortBy_Click" CommandArgument="NumberOfComments">Comments</asp:LinkButton><asp:Literal
                          ID="commentsSort" runat="server" /></p>
                    </th>
                  </tr>
                </table>
              </div>
              <div class="table">
                <table class="table-discussions">
                  <asp:Repeater ID="rptDiscussions" runat="server" OnItemDataBound="rptDiscussions_ItemDataBound">
                    <ItemTemplate>
                      <tr id="trDiscussion" runat="server">
                        <td class="image">
                          <asp:Image ID="imgStartedBy" runat="server" CssClass="userImgSmall" />
                        </td>
                        <td class="post">
                          <h2>
                            <asp:HyperLink ID="lnkDiscussion" runat="server" />&nbsp;
                            <asp:Image ID="imgAttachment" runat="server" Visible="false" ImageUrl="/_layouts/images/Kiiro/icon-attachment.gif" /></h2>
                          <div class="wmd-editor">
                            <asp:Literal ID="litText" runat="server" />
                          </div>
                        </td>
                        <td class="started">
                          <h2>
                            <asp:HyperLink ID="lnkStartedBy" runat="server" /></h2>
                          <h3>
                            <asp:Label ID="lblStartedByDate" runat="server" /></h3>
                        </td>
                        <td class="last">
                          <h2>
                            <asp:HyperLink ID="lnkLastReplyBy" runat="server" /></h2>
                          <h3>
                            <asp:Label ID="lblLastReplyDate" runat="server" /></h3>
                        </td>
                        <td class="comments">
                          <asp:Label ID="lblComments" runat="server" />
                        </td>
                      </tr>
                    </ItemTemplate>
                  </asp:Repeater>
                </table>
              </div>
            </div>
          </asp:Panel>
          <v2:Pager id="v2Pager" runat="server" />
          <v2:WelcomeMessagePanel id="v2WelcomeMessagePanel" runat="server" visible="false" />
        </div>
      </div>
    </div>
  </div>
</asp:Content>
